package com.service;


import com.model.VideoOrder;

import java.util.List;

public interface VideoOrderService  {
    /**
     * 添加订单
     * @param videoId
     * @param userId
     * @return 返回订单，便于打印之类
     */
    VideoOrder saveOrder(int videoId,int userId);

    /**
     * 根据userId查找订单记录
     * @param userId
     * @return
     */
    List<VideoOrder> findOrdersByUserId(int userId);

    /**
     * 根据订单号查找订单
     * @param outTradeNo 订单唯一标识
     * @return
     */
    VideoOrder findOrderByOutTradeNo(String outTradeNo);


}
